package com.dt76.smallloanbackenduser.remote.zjs;


import com.dt76.smallloanbackenduser.hystrix.zjs.BlackUserRemoteHystrix;
import com.dt76.smallloanbackenduser.pojo.zjs.BlackUser;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@Component
@FeignClient(name = "smallloan-backend-service",fallback = BlackUserRemoteHystrix.class)
public interface BlackUserRemote {

    @RequestMapping("/zjs/blackUser")
    public List<BlackUser> qryAllBlackUser();

    @RequestMapping("/zjs/qryPageAll")
    public Page qryPageAllBlackUser(@RequestParam("pageIndex") int pageIndex,
                                    @RequestParam("queryname")String queryname,
                                    @RequestParam("userId")int userId);

    @RequestMapping("/zjs/delBlackUser")
    public Result delBlackUser(@RequestParam("userId") int userId);

}
